@extends('layout.admin')
@section('title','添加用户')
@section('content')
<div class="graphs">
	<h3 class="blank1">添加用户</h3>
		<div class="tab-content">
		<div class="tab-pane active" id="horizontal-form">
			<form class="form-horizontal" action="/user/add" method="post" enctype="multipart/form-data">
				<div class="form-group">
					<label for="focusedinput" class="col-sm-2 control-label">用户名</label>
					<div class="col-sm-4">
						<input class="form-control1" id="focusedinput" name="username" placeholder="请输入用户名" value="{{old('username')}}" type="text">
					</div>
				</div>
				<div class="form-group">
					<label for="inputPassword" class="col-sm-2 control-label">密码</label>
					<div class="col-sm-4">
						<input class="form-control1" id="inputPassword" name="password" placeholder="请输入密码" type="password">
					</div>
				</div>
				<div class="form-group">
					<label for="inputPassword" class="col-sm-2 control-label">确认密码</label>
					<div class="col-sm-4">
						<input class="form-control1" id="inputPassword" name="repassword" placeholder="请输入再次密码" type="password">
					</div>
				</div>
				<div class="form-group">
					<label for="inputPassword" class="col-sm-2 control-label">邮箱</label>
					<div class="col-sm-4">
						<input class="form-control1" id="inputPassword" name="email" placeholder="请输入邮箱" value="{{old('email')}}" type="email">
					</div>
				</div>
				<div class="form-group">
					<label for="selector1" class="col-sm-2 control-label">权限</label>
					<div class="col-sm-4">
						<select id="selector1" name="auth" class="form-control1">
							<option value="0">未激活</option>
							<option value="1">会员</option>
							<option value="2" selected>管理员</option>
						</select>
					</div>
				</div>
				<div class="form-group">
					<label for="exampleInputFile" class="col-sm-2 control-label">头像</label>
					<input id="exampleInputFile" value="{{old('face')}}" type="file" name="face">
				</div>
				<div class="panel-footer">
					<div class="row">
						<div class="col-md-8 col-sm-offset-2">
							<button class="btn-success btn">提交</button>
						</div>
					</div>
			 	</div>
			 	{{csrf_field()}}
			</form>
		</div>
	</div>
</div>
@endsection